package com.test.spring.demo4;

public class changeController {

    private Fruit fruit;

    public Fruit getFruit() {
        return fruit;
    }

    public void setFruit(Fruit fruit) {
        this.fruit = fruit;
    }
    public void test(){
        fruit.eat();
    }
}
